package com.hsylient.redis.service;

import com.hsylient.common.entity.User;
import com.hsylient.redis.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public User findByUserId(Long userId) {
        return userMapper.selectByUserId(userId);
    }
}
